import service from "./request2";

// export function user_list2(params = {}) {
//     return service.get('/', { params })
// }
export function add(params = {}) {
    return service.get('/posts', { params })
}
export function delete_map(params = {}) {
    return service.delete(`/posts/${params}`)
}
export function post_map(params = {}) {
    return service.post(`/posts/`, params)
}
export function patch_map(params = {}) {
    return service.patch(`/posts/${params}`)
}


//行程列表
export function tripmanage_list(params = {}) {
    return service.get('/trip', { params })
}
//列表的添加
export function add_list(params = {}) {
    return service.post('/trip', params)
}
//列表的删除
export function del_list(params = {}) {
    return service.delete(`/trip/${params}`)
}
//列表的搜索(学号)
export function search_list(params = {}) {
    return service.get(`/trip?con_like=${params}`)
}
//列表的搜索(姓名)
export function search_list2(params = {}) {
    return service.get(`/trip?name_like=${params}`)
}


//健康列表
export function health_list(params = {}) {
    return service.get('/health', { params })
}
//列表的添加
export function add_hlist(params = {}) {
    return service.post('/health', params)
}
//列表的删除
export function del_hlist(params = {}) {
    return service.delete(`/health/${params}`)
}
//列表的搜索(学号)
export function search_hlist(params = {}) {
    return service.get(`/health?con_like=${params}`)
}
//列表的搜索(姓名)
export function search_hlist2(params = {}) {
    return service.get(`/health?name_like=${params}`)
}